{# app/Resources/views/easy_admin/picture_collection.html.twig #}

<style>
.album-image {
	float: left;
    width:150px;
    height:150px;
    overflow:hidden;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    background-size:cover;
	border: 5px solid white;
	outline: 1px solid silver;
	margin: 5px;
	color: white;
}
.clear {
	clear: both;
}
</style>

{% set image_path = field_options.base_path %}

{% for picture in value %}
	<div class="album-image" style="background-image:url({{image_path}}/{{picture.image}})">
		{{picture.image}}
	</div>
{% endfor %}

<div class="clear"></div>
